package HomeWork1;

public class Divide implements Compute {
    @Override
    public int computer(int n, int m) {
        if (m != 0){
            return n / m;
        }else {
            System.out.println("除数不能为零!");
            return 0;
        }
    }
}